import java.util.Scanner;
public class Average{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		long sum = 0;
		long number = 0;
		do {
			System.out.print("输入数字: ");
			number = Long.parseLong(scanner.nextLine());
			sum += number;
		}while(number !=0);
		for(String arg : args) {
			sum += Long.parseLong(arg);			
		}
		System.out.println("平均: " + (float) sum / args.length);
	}
}
